//
//  MAKNavigationController.h
//  MKCommon
//
//  Created by zhuwh on 2020/1/16.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger,MAKNavigationBarStyle) {
    MAKNavigationBarStyleUnkonw = -1,  // 未知
    MAKNavigationBarStyleExtend = 0,  // 继承上一个页面样式
    MAKNavigationBarStyleCustom = 1, //自定义样式
    MAKNavigationBarStyleDefault = 2, //系统样式
};


@interface MAKNavigationController : UINavigationController

@property (nonatomic, copy) void (^mak_initBlock)(UINavigationController* navigationController);
@property (nonatomic, copy) void (^mak_systemStyleBlock)(UINavigationController* navigationController);
@property (nonatomic, copy) void (^mak_backButtonStyleBlock)(UINavigationController* navigationController,UIViewController* viewController);

@property(nonatomic,assign) BOOL mak_supportTouchBack;

@end

@interface UIViewController (MAKNavigationController)

@property(nonatomic,assign) BOOL mak_navigationBarHidden;
@property(nonatomic,assign) MAKNavigationBarStyle mak_navigationBarStyle;
@property (nonatomic, copy) void (^mak_navigationBarStyleBlock)(UINavigationController* navigationController);
@property(nonatomic,assign) BOOL mak_touchBack;

@end

NS_ASSUME_NONNULL_END
